﻿<Page
    x:Class="EmprestaAE.MVVM.View.DatePickerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EmprestaAE.MVVM.View"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:viewmodel="using:EmprestaAE.MVVM.ViewModel"
    mc:Ignorable="d">

    <!--<Page.Transitions>
        <TransitionCollection>
            <EntranceThemeTransition/>
        </TransitionCollection>
    </Page.Transitions>-->

    <Page.Resources>
        <viewmodel:BorrowVM x:Key="borrowvm"/>
    </Page.Resources>

    <Grid Background="{StaticResource ApplicationBackgroundColor}"
          DataContext="{Binding Source={StaticResource borrowvm}, Path=Instance}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="6*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!-- back button -->
        <Grid Grid.Column="0" 
              Grid.Row="0">
            <Button Style="{StaticResource BackButtonStyle}"
                    Grid.Row="0"
                    Grid.Column="0"
                    Command="{Binding NavigationService.GoBackCommand}">
            </Button>
        </Grid>

        <!-- title -->
        <Grid Grid.Row="0"
              Grid.Column="1">
            <TextBlock Style="{StaticResource PageHeaderTextStyle}"
                       Text="{StaticResource BorrowViewTitle}"
                       Grid.Column="1"
                       Grid.Row="0"/>
        </Grid>

        <!-- content -->
        <Grid Grid.Column="1"
              Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="8*"/>
                <ColumnDefinition Width="8*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <!-- due date data picker-->
            <Grid Grid.Column="1"
                  Grid.Row="0">
            </Grid>

        </Grid>
    </Grid>
</Page>